home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
050
/
turbot2.arc
/
PROG14.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1985-06-28
|
570b
|
27 lines
PROGRAM PROG14;
{$U+ Copyright (C), 1985 by Lyle Faurot. All rights reserved.
New Topics: Procedure declaration
Using procedures
Using parameters
Counter with error checking
}
VAR
Count, Adjusted_Count : Integer;
I, J, K : Integer;
PROCEDURE Add(No_1, No_2 : Integer; VAR Sum : Integer);
BEGIN
Sum := No_1 + No_2;
END;
BEGIN
Write('Enter count: ');
ReadLn(Count);
Add(2, Count, Adjusted_Count);
WriteLn('Adjusted Count is: ',Adjusted_Count);
END.